package com.momo.mapper.mapper;

import com.momo.mapper.dataobject.SequenceInfoDO;
import org.apache.ibatis.annotations.Param;

/**
 * 由于需要对分页支持,请直接使用对应的DAO类
 * 注意:此结构有系统生成,禁止手工修改,以免被覆盖,请通过dalgen生成
 * The Table SEQUENCE_INFO.
 * SEQUENCE_INFO
 */
public interface SequenceInfoDOMapper{

    /**
     * desc:插入表:SEQUENCE_INFO.<br/>
     * descSql =  SELECT LAST_INSERT_ID() INSERT INTO SEQUENCE_INFO( NAME STEP ,CURRENT_VALUE )VALUES( #{name,jdbcType=VARCHAR} #{step,jdbcType=INTEGER} ,#{currentValue,jdbcType=INTEGER} )
     * @param entity entity
     * @return int
     */
    int insert(SequenceInfoDO entity);
    /**
     * desc:更新表:SEQUENCE_INFO.<br/>
     * descSql =  UPDATE SEQUENCE_INFO SET STEP = #{step,jdbcType=INTEGER} ,CURRENT_VALUE = #{currentValue,jdbcType=INTEGER} WHERE NAME = #{name,jdbcType=VARCHAR}
     * @param entity entity
     * @return int
     */
    int update(SequenceInfoDO entity);
    /**
     * desc:根据主键删除数据:SEQUENCE_INFO.<br/>
     * descSql =  DELETE FROM SEQUENCE_INFO WHERE NAME = #{name,jdbcType=VARCHAR}
     * @param name name
     * @return int
     */
    int deleteByName(String name);
    /**
     * desc:根据主键获取数据:SEQUENCE_INFO.<br/>
     * descSql =  SELECT * FROM SEQUENCE_INFO WHERE NAME = #{name,jdbcType=VARCHAR}
     * @param name name
     * @return SequenceInfoDO
     */
    SequenceInfoDO getByName(String name);
}
